import axios from '../utils/http'

export function getCEMSDeviceByType(params) {
    return axios({
        url: '/getDeviceByType',
        method: 'get',
        params: params
    })
}

export function getCEMSDeviceData(params) {
    return axios({
        url: '/getDeviceData',
        method: 'get',
        params: params
    })
}
// 焙烧湿电 获取数据
export function getWetElectricity(params) {
    return axios({
        url: '/wetElectricData/getRoasting',
        method: 'get',
        params: params
    })
}
// 吸料天车 获取数据
export function getAirCarData(params) {
    return axios({
        url: '/skyCar/getWestData',
        method: 'get',
        params: params
    })
}
export function getTunnelBoxData(params) {
    return axios({
        url: '/tunnelData/getBoxData',
        method: 'get',
        params: params
    })
}
export function getTunnelDtuData(params) {
    return axios({
        url: '/tunnelData/getDtuData',
        method: 'get',
        params: params
    })
}
export function getSteepData(params) {
    return axios({
        url: 'dippingData/getData',
        method: 'get',
        params: params
    })
}
export function getGraphData(params) {
    return axios({
        url: 'graphitingData/getData',
        method: 'get',
        params: params
    })
}
//焙烧PLC获取最新数据
export function roastDatagetAll(params) {
    return axios({
        url: '/roastData/getAll',
        method: 'get',
        params: params
    })
}
// 焙烧获取历史数据
export function roastHisDatagetAll(params) {
    return axios({
        url: '/roastHisData/getAll',
        method: 'get',
        params: params
    })
}
// 焙烧获取 10分 30 分 60分 数据
export function roastHisDatagetCornData(params) {
    return axios({
        url: '/roastHisData/getCornData',
        method: 'get',
        params: params
    })
}
export function getFormPlcData(params) {
    return axios({
      url: '/formPlcHisData/getAll',
      method: 'get',
      params: params
    })
  }
//焙烧获取设备类型 
export function findByDeviceTypeId (params) {
  return axios({
    url: '/device/findByDeviceTypeId?typeId=62874bb27cc89967383a5b80',
    method: 'get',
    params: params
  })
}

export function formTypeGet(params) {
    return axios({
        url: '/formType/get',
        method: 'get',
        params: params
    })
}

export function formGet(params) {
    return axios({
        url: '/form/get',
        method: 'get',
        params: params
    })
}

export function formTypeGetTypeName(params) {
    return axios({
        url: '/formType/getTypeName',
        method: 'get',
        params: params
    })
}

export function formTypeGetById(params) {
    return axios({
        url: '/formType/getById',
        method: 'get',
        params: params
    })
}
